#import "RNSourceListManageHeader.h"
#import "NSManagedObjectContext+SRAdditions.h"
#import "RNCatalog.h"
#import "RNFavorites.h"
#import "RNHistory.h"
#import "RNConstants.h"

@implementation RNSourceListManageHeader

@synthesize children = children_;

-(id)initWithManagedObjectContext:(NSManagedObjectContext *)moc {
    if (!(self = [super init]))
        return nil;
    
    [self setChildren:[NSArray arrayWithObjects:[RNCatalog sharedCatalog], [RNFavorites sharedFavorites], [RNHistory sharedHistory], nil]];
    return self;
}

-(NSString *)title {
    return @"MANAGE";
}

-(NSDictionary *)objectDictionary {
    return [NSDictionary dictionaryWithObject:[self title] forKey:RNTitleKey];
}

@end
